Skip to content

Instantly share code, notes, and snippets.

@webdevel
webdevel / vim-cheat-sheet.md
Last active May 31, 2026 14:31
Vim Cheat Sheet

Vim Cheat Sheet

Vim is an advanced CLI based text editor. Many key combinations used in Vim are easily associated with a memorable phrase. One effective way to use Vim is to associate phrases with Operators, Text Objects and Motions. Then compose a phrase for what you want to do. Start with an Operator followed by a Text Object or Motion. Prefix an Operator, Command or Motion with a number/count to extend it.

Table of Contents
@aidos-dev
aidos-dev / README.md
Last active May 31, 2026 14:29
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@Explosion-Scratch
Explosion-Scratch / Compress string.js
Created November 1, 2021 18:51
Compress string using gzip and native browser APIs
function compress(string, encoding) {
const byteArray = new TextEncoder().encode(string);
const cs = new CompressionStream(encoding);
const writer = cs.writable.getWriter();
writer.write(byteArray);
writer.close();
return new Response(cs.readable).arrayBuffer();
}
function decompress(byteArray, encoding) {
@jonleighton
jonleighton / base64ArrayBuffer.js
Last active May 31, 2026 14:26
Encode an ArrayBuffer as a base64 string
// Converts an ArrayBuffer directly to base64, without any intermediate 'convert to string then
// use window.btoa' step. According to my tests, this appears to be a faster approach:
// http://jsperf.com/encoding-xhr-image-data/5
/*
MIT LICENSE
Copyright 2011 Jon Leighton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@DhananjayPorwal
DhananjayPorwal / helium-drm-fix.md
Created May 30, 2026 16:22
Manual Widevine DRM fix for Helium Browser (Linux / macOS / Windows)

How to get Widevine DRM working in Helium Browser (Linux, macOS, Windows)

Helium doesn't ship with Widevine DRM out of the box because it's an ungoogled-chromium fork. If you try to use Spotify, Netflix, or Crunchyroll, it'll just fail.

You can fix this easily by dropping the Widevine files from a browser that already has them (like Chrome or Brave) right into Helium's data folders. Since Helium scans these directories when it boots up, it'll pick them up automatically.

Here's the quick way to copy them over manually depending on your OS.


@al3bsi
al3bsi / prompt.md
Created May 31, 2026 14:25 — forked from Pythonation/prompt.md
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@Pythonation
Pythonation / prompt.md
Last active May 31, 2026 14:25
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@miguel-heygen
miguel-heygen / heygen-biweekly-video-skill.md
Last active May 31, 2026 14:24
HeyGen Biweekly Video skill for Claude Code — avatar-hosted engineering updates from GitHub activity. Drop into ~/.claude/skills/ and invoke with /heygen-biweekly-video.
name heygen-biweekly-video
description Produce a launch-grade biweekly team-update video — avatar-hosted (HeyGen CLI), built in HyperFrames, with real captured product UI, real preview videos, kinetic captions, smooth camera moves, and music ducked under the voice. Use when: biweekly / sprint recap video, avatar-narrated dev update, changelog-as-video.

HeyGen Biweekly Video

@sciboy12
sciboy12 / HatinTimeSystemSettings.ini
Created March 16, 2024 20:00
High performance A Hat in Time config (make sure to set as Read-only before starting AHiT, to prevent changes being overwritten)
[SystemSettings]
bAllowShadowMeshGeneration=False
PrimaryWholeSceneShadowSplitSize=2048
bViewPrePass=False
bAllowShadowFrustumCulling=True
ShadowFrustumCullingAmount=0.075000
bAllowDecalDotCulling=True
PPDownSampleFactor=6
MotionBlurSamples=5
bAllowStereoSpatialization=True